export default {
  state: {
    projectId:'',
    SoftwareReleaseTab:'',
    SorReleaseTab:'a',
    EsoReleaseTab:'a',
    ReleaseTab:'a',
    TgReleaseTab:'0',
    globalScoket:{},
  },
  mutations: {
    setProjectId:(state, id)=>{
      state.projectId = id
    },
    setSoftwareReleaseTab:(state, id)=>{
      state.SoftwareReleaseTab = id
    },
    SET_SORRELEASETAB:(state, id)=>{
      state.SorReleaseTab = id
    },
    SET_EsoReleaseTab:(state, id)=>{
      state.EsoReleaseTab = id
    },
    SET_ReleaseTab:(state, id)=>{
      state.ReleaseTab = id
    },
    SET_TgTab:(state, id)=>{
      state.TgReleaseTab = id
    },
    SET_Scoket:(state, id)=>{
      state.globalScoket = id
    },
  },
  actions: {
    setProject({commit}, id) {
      commit('setProjectId', id)
    },
    SoftwareReleaseTab({commit}, id) {
      commit('setSoftwareReleaseTab', id)
    },
    SorReleaseTab({commit}, id) {
      commit('SET_SORRELEASETAB', id)
    },
    EsoReleaseTab({commit}, id) {
      commit('SET_EsoReleaseTab', id)
    },
    ReleaseTab({commit}, id) {
      commit('SET_ReleaseTab', id)
    },
    TgReleaseTab({commit}, id) {
      commit('SET_TgTab', id)
    },
    globalScoket({commit},id){
      commit('SET_Scoket', id)
    }
  }
}
